package main

import (
	. "SGEngine2"
	"SGEngine2/SGUI"
)

func main() {
	View{
		Width:  640,
		Height: 480,
		Title:  "T^T",
		ViewScene: &Scene{
			InitFunc: InitScene,
			RootNode: ZeroNode(),
			Camera: Camera{
				CameraNode: ZeroNode(),
				BGColor:    Color3{0.6, 0.6, 0.6},
			}},
	}.Run()
}

func InitScene(scene *Scene) {
	ShaderFolderPath = "../../Shader/"
	SGUI.SGMLGlobal.LoadTopWidget("NewScript.html", nil, scene.RootNode, "")
}
